//
//  NearActivityCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/7/21.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "NearActivityCell.h"

@interface NearActivityCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UIImageView *showImageView;
@property (weak, nonatomic) IBOutlet UILabel *typeLab;


@end

@implementation NearActivityCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(ActivityDetailModel *)model
{
    _model = model;
    self.titleLab.text = model.title;
    self.timeLab.text = [NSString stringWithFormat:@"举办时间：%@",model.holdDate];
    [self.showImageView sd_setImageWithURL:[NSURL URLWithString:model.activityPictureUrl] placeholderImage:GetImage(@"default_goods_image")];
    if (model.activityType == 0) {
        self.typeLab.text = @"审核中";
    }else if (model.activityType == 1) {
        self.typeLab.text = @"审核通过";
    }else if (model.activityType == 2) {
        self.typeLab.text = @"审核拒绝";
    }
}

@end
